
from unit01.Testcase.TestCase import TestCase
from unit01.Tool.Tool import tool
import unittest

if __name__ == '__main__':
    tool_obj=tool()

    tool_obj.log()

    suite=unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestCase))

    tool_obj.baogao(suite)

    attachments=[r'C:\Users\Kaka\PycharmProjects\PythonProject37GJZ\unit01\Testcase\TestCase.py','a3mallceshi.log']
    tool_obj.send_email(attachments)

